import request from "@/utils/request";

//获取漫画详情章节接口
export function getSendCategorys(id) {
    return request({
        url: '/bcomic/ComicDetail?comicId='+id,
        
    })
}
//获取漫画章里面的页数
export function getCarToonye(id) {
    return request({
        url: '/bcomic/GetImageIndex?epId='+id,
        
    })
}
//获取漫画详情
export function getCarToonXq(path) {
    return request({
        url: `/bcomic/ImageToken?urls=["https://manga.hdslb.com${path}@450w.webp"]`
        
    })
}
//得到排行榜前十
export function getPaihangbang() {
    return request({
        url: '/bcomic/HomeRecommend',
        
    })
}
   //搜索页面推荐
export function getSearchReemont(searchPageNum) {
    return request({
        url: `/bcomic/GetClassPageSixComics?id=136&pageNum=${searchPageNum}&pageSize=6&isAll=0`
        
    })
}
//  得到主页面全部漫画
export function getHomeViewAllData(pageNum) {
    return request({
        url: `/bcomic/ClassPage?styleId=-1&areaId=-1&isFinish=-1&order=0&pageNum=${pageNum}&pageSize=10&isFree=-1`
        
    })
}
//得到历史记录的数据
export function getHistoryCartoon(id) {
    return request({
        url: '/bcomic/ComicDetail?comicId='+id,
        
    })
}
//得到男生或者女生榜推荐https://apis.netstart.cn/bcomic/GetHomeSecondaryComics?moduleId=1097&pageNum=1&pageSize=10


export function getNanbangdan(id) {
    return request({
        url: '/bcomic/ComicDetail?comicId='+id,
        
    })
}

// 得到各种模块布局 https://apis.netstart.cn/bcomic/GetRankInfo?id=1&offset=0&subId=0

export function getLayoutId(id) {
    return request({
        url: `/bcomic/GetRankInfo?id=${parseInt(id)}&offset=0&subId=0`
        
    })
}
//排行榜 id   https://apis.netstart.cn/bcomic/ListRank
export function getBangdanId() {
    return request({
        url: '/bcomic/ListRank'
        
    })
}
//得到收藏的漫画   /bcomic/GetFavComics?uid=504372610&pageSize=14&pageNum=1
export function getShouCangManhua() {
    return request({
        url: '/bcomic/GetFavComics?uid=504372610&pageSize=14&pageNum=1'
        
    })
}


